QT       += core gui sql charts

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17 ordered

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    common.cpp \
    datatest.cpp \
    loggermanager.cpp \
    main.cpp \
    mainproject.cpp \
    sqlitedatabase.cpp\
    ../DeviceManager/devicemanager.cpp\
    ../DeviceManager/deviceinfo.cpp\
    ../DeviceManager/tableviewheader.cpp\
    ../AlertManager/alertmanager.cpp\
    ../AlertManager/alertrecord.cpp\
    ../AlertManager/leftwidget.cpp\
    ../AlertManager/mainwidget.cpp\
    ../AlertManager/alertnotice.cpp\
    ../DataMonitor/datamonitor.cpp\
    ../DataMonitor/circlechartpage.cpp\
    ../DataMonitor/mainwindow.cpp\
    ../SystemManager/systemmanager.cpp\
    ../SystemManager/logmodel.cpp\
    ../UserManager/reg.cpp\
    ../UserManager/login.cpp\
    ../UserManager/forgetpassword.cpp\
    ../UserManager/edituser.cpp\
    ../UserManager/deleteuser.cpp\
    ../UserManager/adduser.cpp\
    ../UserManager/adminmanager.cpp\
    ../UserManager/clickablelabel.cpp
HEADERS += \
    common.h \
    datatest.h \
    loggermanager.h \
    mainproject.h \
    sqlitedatabase.h\
    ../DeviceManager/devicemanager.h\
    ../DeviceManager/deviceinfo.h\
    ../DeviceManager/tableviewheader.h\
    ../AlertManager/alertmanager.h\
    ../AlertManager/alertrecord.h\
    ../AlertManager/leftwidget.h\
    ../AlertManager/mainwidget.h\
    ../AlertManager/alertnotice.h\
    ../DataMonitor/datamonitor.h\
    ../DataMonitor/circlechartpage.h\
    ../DataMonitor/mainwindow.h\
    ../SystemManager/systemmanager.h\
    ../SystemManager/logmodel.h\
    ../UserManager/reg.h\
    ../UserManager/login.h\
    ../UserManager/forgetpassword.h\
    ../UserManager/edituser.h\
    ../UserManager/deleteuser.h\
    ../UserManager/adduser.h\
    ../UserManager/adminmanager.h \
    ../UserManager/clickablelabel.h
FORMS += \
    mainproject.ui\
    ../DeviceManager/devicemanager.ui\
    ../DeviceManager/deviceinfo.ui\
    ../AlertManager/alertmanager.ui\
    ../AlertManager/leftwidget.ui\
    ../AlertManager/alertrecord.ui\
    ../AlertManager/mainwidget.ui\
    ../AlertManager/alertnotice.ui\
    ../DataMonitor/datamonitor.ui\
    ../DataMonitor/circlechartpage.ui\
    ../DataMonitor/mainwindow.ui\
    ../SystemManager/systemmanager.ui\
    ../UserManager/register.ui\
    ../UserManager/reg.ui\
    ../UserManager/login.ui\
    ../UserManager/forgetpassword.ui\
    ../UserManager/edituser.ui\
    ../UserManager/deleteuser.ui\
    ../UserManager/adduser.ui\
    ../UserManager/adminmanager.ui



# 添加子项目库的路径
INCLUDEPATH += $$PWD/../DeviceManager
INCLUDEPATH += $$PWD/../AlertManager
INCLUDEPATH += $$PWD/../DataMonitor
INCLUDEPATH += $$PWD/../SystemManager
INCLUDEPATH += $$PWD/../UserManager

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

target.path = ../sp
# 指定编译顺序
MainProject.depends = SystemManager UserManager DeviceManager DataMonitor AlertManager
# 指定模板类型为应用程序
TEMPLATE = app

RESOURCES += \
    qss.qrc


